package com.example.designdemo.adapter.adapterobject;

import com.example.designdemo.adapter.adapterclass.Source;
import com.example.designdemo.adapter.adapterclass.Targetable;

public class Wrapper implements Targetable {
    private Source source;

    public Wrapper(Source source){
        super();
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("This is a targetable method!");
    }
}
